﻿#ifndef CMDLINECHARTMEASUREBUTTONCLICKED_H
#define CMDLINECHARTMEASUREBUTTONCLICKED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartMeasureButtonClicked : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartMeasureButtonClicked();
            ~CmdLineChartMeasureButtonClicked();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(int meaureTypeInt, double value) { 
                m_meaureTypeInt = meaureTypeInt; 
                m_value = value; 
            }

        private:
            int m_meaureTypeInt{};
            double m_value{};
    };

} // namespace PostCommand

#endif
